package com.demo2do.fms.queue.dao;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.core.persistence.annotation.Query;
import com.demo2do.core.persistence.annotation.Variable;
import com.demo2do.fms.entity.supplier.common.Supplier;
import com.demo2do.fms.entity.supplier.common.Type;

/**
 *
 * @author Ark
 *
 */
@Dao("hibernate")
public interface SupplierDao {

    /**
     * @param orgId
     * @param type
     * @return
     */
    @Query("FROM Supplier WHERE disabled = false AND orgId = :orgId AND type = :type ")
    public Supplier get(@Variable("orgId") Long orgId , @Variable("type") Type type);
    
}
